package com.atguigu.cmsService.client;

import com.atguigu.cmsService.client.impl.IndexClientImpl;
import com.atguigu.commonutils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author alan
 */
@FeignClient(name = "service-edu", fallback = IndexClientImpl.class)
@Component
public interface IndexClient {

    @ApiOperation("获取首页的教师和课程推荐")
    @PostMapping("/eduService/index/data")
    R getTeacherAndCourse();

}
